package com.Ritany3.subject.common.enums;


import lombok.Getter;

/**
 * 删除状态枚举
 */
@Getter
public enum CategroyTypeEnum {
    PRIMARY(1,"岗位大类"),
    SECOND(2,"二级分类");
    public int code;
    public String desc;

    CategroyTypeEnum(int code , String desc){
        this.code=code;
        this.desc=desc;
    }

    public static CategroyTypeEnum getByCode(int codeVal){
        for(CategroyTypeEnum resultCodeEnum : CategroyTypeEnum.values()){
            if(resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return null;
    }

}
